//
//  InfoCell.m
//  DogLocate
//
//  Created by mac on 11-5-22.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "InfoCell.h"


@implementation InfoCell

@synthesize date;
@synthesize distance;
@synthesize time;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
		
		date = [[UILabel alloc]initWithFrame:CGRectMake(70, 4, 150, 30)];
		date.backgroundColor = [UIColor clearColor];
		date.textColor = [UIColor whiteColor];
		date.font = [UIFont fontWithName:@"Arial-BoldMT" size:18];
		[self addSubview:date];
		
		distance = [[UILabel alloc]initWithFrame:CGRectMake(70, 30, 80, 30)];
		distance.backgroundColor = [UIColor clearColor];
		distance.textColor = [UIColor whiteColor];
		[self addSubview:distance];
		
		
		time = [[UILabel alloc]initWithFrame:CGRectMake(150, 30, 100, 30)];
		time.backgroundColor = [UIColor clearColor];
		time.textColor = [UIColor whiteColor];
		[self addSubview:time];
		
		UIImageView *imgV = [[UIImageView alloc]initWithFrame:CGRectMake(15, 15, 32, 32)];
		imgV.image = [UIImage imageNamed:@"check.png"];
		[self addSubview:imgV];
		[imgV release];
       
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state.
}


- (void)dealloc {
    [super dealloc];
}


@end
